<!--
Copyright 2017 The Kubernetes Dashboard Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<div layout="row">
  <kd-graph-card graph-title="[[CPU usage|Title for graph card displaying CPU metric of one deployment.]]"
                 metrics="::ctrl.deploymentDetail.podList.cumulativeMetrics"
                 selected-metric-names="'cpu/usage_rate'">
  </kd-graph-card>
  <kd-graph-card graph-title="[[Memory usage|Title for graph card displaying memory metric of one deployment.]]"
                 graph-info="[[The memory usage includes the caches in the pods managed by this deployment.|Help message detailing what is included in the memory usage]]"
                 metrics="::ctrl.deploymentDetail.podList.cumulativeMetrics"
                 selected-metric-names="'memory/usage'">
  </kd-graph-card>
</div>

<kd-deployment-info deployment="::ctrl.deploymentDetail"></kd-deployment-info>

<kd-content-card>
  <kd-content>
    <kd-replica-set-card-list replica-set-list="::ctrl.newReplicaSetList">
      <kd-header>[[New Replica Set|Title 'New Replica Set' for the newly created replica set view, on the deployment details page.]]</kd-header>
      <kd-empty-list-text>
        [[There are currently no new Replica Sets on this Deployment.|Text for new replica sets card zero-state in deployment details page.]]
      </kd-empty-list-text>
    </kd-replica-set-card-list>
  </kd-content>
</kd-content-card>

<kd-content-card>
  <kd-content>
    <kd-replica-set-card-list replica-set-list="::ctrl.deploymentDetail.oldReplicaSetList"
                              replica-set-list-resource="::ctrl.oldReplicaSetListResource">
      <kd-header>[[Old Replica Sets|Title 'Old Replica Sets' for the old replica sets view, on the deployment details page.]]</kd-header>
      <kd-empty-list-text>
        [[This Deployment does not have any old replica sets|Text for old replica sets card zero-state in deployment details page.]]
      </kd-empty-list-text>
    </kd-replica-set-card-list>
  </kd-content>
</kd-content-card>

<kd-content-card>
  <kd-content>
    <kd-horizontal-pod-autoscaler-card-list horizontal-pod-autoscaler-list="::ctrl.deploymentDetail.horizontalPodAutoscalerList">
      <kd-empty-list-text>
        [[There are currently no Horizontal Pod Autoscalers targeting this Deployment.|Text for horizontal pod autoscalers card zerostate in replica set details page.]]
      </kd-empty-list-text>
    </kd-horizontal-pod-autoscaler-card-list>
  </kd-content>
</kd-content-card>

<kd-event-card-list event-list="::ctrl.deploymentDetail.eventList"
                    event-list-resource="::ctrl.eventListResource"></kd-event-card-list>
